'use strict'

let models = require('../models');

let RoleDao = models.RoleDao;

let Role = models.Role;

function getRoleByName(roleName) {
    return RoleDao.findOne({
        name: roleName
    });
}

module.exports = {
    getRoleByName
};
